package com.data2wisdom.comm.base.model;
/**
 * 通用条件操作符
 * @author LV
 *
 */
public enum CondOper {
	GT("gt",">"),GE("ge",">="),LT("lt","<"),LE("le","<="),LIKE("like","like"),
	LLIKE("llike","llike"),RLIKE("rlike","rlike"),EQ("eq","="),BWT("bwt","bwt"),
	GTD("gtd",">d"),GED("ged",">=d"),LTD("ltd","<d"),LED("led","<=d"),EQD("eqd","=d"),;
	public String operStr;
	public String oper;
	CondOper(String operStr,String oper){
		this.operStr=operStr;
		this.oper=oper;
	}
	public static String  getCond(String operStr){
		for (CondOper e : CondOper.values()) {
            if (operStr.equals(e.operStr)) {
				return e.oper;
			}
        }
		return "=";
	}
}
